export type OptionType = {
  text: string;
  value: string;
  checked: boolean;
};

export type QuestionCheckboxPropsType = {
  title?: string;
  list?: OptionType[];
  isVertical?: boolean;
  //新增
  disabled?: boolean;
  onChange?: (newProps: QuestionCheckboxPropsType) => void;
};

export const QuestionCheckboxDefaultProps: QuestionCheckboxPropsType = {
  title: '多选项标题',
  list: [
    { text: '选项1', value: 'item1', checked: false },
    { text: '选项2', value: 'item2', checked: false },
    { text: '选项3', value: 'item3', checked: false },
  ],
  isVertical: false,
};

export type QuestionCheckboxStatPropsType = {
  stat: Array<{ name: string; count: number }>;
};
